<template>
	<view class="invite">
		<NavBar :isBack="true"></NavBar>
		<view class="content">
			<view class="main">
				<image class="" :src="shareUrl" mode="widthFix"></image>
				<view class="title">长按二维码 进店咨询</view>
				<view class="text">文案文案文案文案文案文案文案文案文案文案文案
					文案文案文案文案文案文案文案文案文案文案文案</view>
			</view>

		</view>
	</view>
</template>

<script setup>
import { usersInvite } from '@/api/my'
import { ref } from 'vue'
const shareUrl = ref('')
async function getInvite () {
	const res = await usersInvite()
	shareUrl.value = res.data.image
}
getInvite()
</script>

<style lang="scss" scoped>
.invite {
	.content {
		padding: 200rpx 36rpx 36rpx;

		.main {
			width: 678rpx;
			height: 878rpx;
			// background-image: url('@/static/my/qr-bg.png');
			background-size: cover;
			display: flex;
			flex-direction: column;
			align-items: center;

			.qrcode-box {
				display: flex;
				justify-content: center;
				align-items: center;
				width: 505rpx;
				height: 505rpx;
				// background-image: url('@/static/my/qr-code.png');
				background-size: cover;
				margin: 80rpx 85rpx 60rpx;
				z-index: 9;


				.qr-code {
					z-index: 1;

				}

			}

			.title {
				width: 505rpx;
				position: relative;
				text-align: center;
				font-weight: bold;
				font-size: 28rpx;
				color: #333333;
				margin-bottom: 40rpx;

				&:before {
					position: absolute;
					content: "";
					top: 50%;
					transform: translateY(-50%);
					right: 20rpx;
					width: 78rpx;
					height: 1rpx;
					background: #58DBCF;
				}

				&::after {
					position: absolute;
					content: "";
					top: 50%;
					transform: translateY(-50%);
					left: 20rpx;
					width: 78rpx;
					height: 1rpx;
					background: #58DBCF;
				}
			}

			.text {
				width: 572rpx;
				padding-top: 33rpx;
				border-top: 1rpx solid #F5F5F5;
				font-weight: 500;
				font-size: 26rpx;
				color: #999999;
				line-height: 41rpx;
			}
		}
	}
}
</style>